import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// 导入组件扩展名插件
import vueSetupExtend from 'vite-plugin-vue-setup-extend'
// 导入路径模块
const path=require('path')

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue(),vueSetupExtend()],
  resolve:{
    alias:{
      '@':path.resolve(__dirname,'./src')
    }
  },
  css: {
    preprocessorOptions: {
      less: {
        additionalData: `
          @import "@/assets/styles/variables.less";
          @import "@/assets/styles/mixins.less";
        `
      }
    }
  }
})
